import Vuerouter from 'vue-router';

import Home from './components/tabbar/HomeContainer.vue';
import Member from './components/tabbar/MemberContainer.vue';
import Shopcar from './components/tabbar/ShopcarContainer.vue';
import Search from './components/tabbar/SearchContainer.vue';


import NewList from './news/newsList.vue';
import newInfo from './news/newsInfo.vue';
import goodsList from './goods/goodsList.vue';
import goodsInfo from './goods/goodsInfo.vue';

import photos from './photos/photoList.vue';


var router = new Vuerouter({
    routes: [{
        path: '/',
        redirect: '/home',
    }, {
        path: '/home',
        component: Home,
    }, {
        path: '/contact',
        component: Member,
    }, {
        path: '/cart',
        component: Shopcar,
    }, {
        path: '/search',
        component: Search,
    }, {
        path: '/home/newList',
        component: NewList,
    }, {
        path: '/home/newsinfo/1',
        component: newInfo,
    },{
        path: '/home/photolist',
        component: photos,
    },{
        path: '/home/goodslist',
        component: goodsList,
    },{
        path: '/home/goodsInfo',
        component: goodsInfo,
    }],
    linkActiveClass: 'mui-active' // 覆盖默认的路由高亮的类，用mui-active类覆盖默认的router-link-active
})

export default router;


